#! /usr/bin/python3
# -*- coding: utf-8 -*-
# __author__ = "Fengxuewei"
# Date: 2020/6/20

from bs4 import BeautifulSoup
import requests



url = 'https://pro.jd.com/mall/active/27hudaEnK18uBeTJ6KUmNo9wsFpg/index.html'

wb_data = requests.get(url)
soup = BeautifulSoup(wb_data.text,'lxml')
titles = soup.select('div.pd_info > div.pd_title')
for title in titles:
    print(title.text)

#J_babelOptPage > div > div.bab-opt-mod.bab-opt-mod-1_7.shangpin_putong > div:nth-child(4) > div > a:nth-child(1) > div > div.pd_info > div.pd_title